<template>
  <div>
    <input-num :No="No" @change="change"></input-num>
    <yd-button
      size="large"
      :disabled="No.length !== 5"
      type="primary"
      class="btn-blue"
      @click.native="confirm"
    >确认签到</yd-button>
  </div>
</template>
<script>
import inputNum from '../../base/InputNum'
export default {
  name: 'InputNumber',
  components: { inputNum },
  data() {
    return {
      No: '1234D'
    }
  },
  methods: {
    confirm() {
      this.$router.back(-1)
    },
    change(val) {
      this.No = val
    }
  }
}
</script>
<style lang="stylus" scoped>
.btn-blue
  position: absolute;
  bottom: 0.7rem;
</style>
